﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SunFlower : MonoBehaviour {
    public int hp = 100;
    


    public void SubHp(int value)
    {
        hp -= value;
        Debug.Log("减血");
        if (hp <= 0)
        {
            Die();
        }
    }

    private void Die()
    {
        Destroy(gameObject);
    }
    

}
